#ifndef _MESSAGE_H_
#define _MESSAGE_H_

        #include "include.h"

        bool_t xdr_char_tab (XDR * xdr, char* str, int size);
        bool_t xdr_message (XDR * xdr, Message * msg);
        Message* newMessage();
        bool_t isAlreadyReceived (Message * msg);
        void addMsgReceived (Message msg);              // add the message in MessageReceived
        void send_message_contact(char* name, char* message);
        void printMessage(Message msg, char* truc);
        int send_message(Message *msg);
        void* send_message_thread(void* arg);
        void send_message_all(char * message, int type);


#endif


